<table cellpadding="5">
	<input name="id" type="hidden" value="${(cmsServiceOrgItem.id)!}" />
	<tr>
		<td class="tbLabel">服务方类型:</td>
		<td>
			<@eu.comboBox name="serviceType" url="common.do?loadComboBox&key=CMS_SERVICE_TYPE&value=${(cmsServiceOrgItem.serviceType)!}" />
		</td>
		<td class="tbLabel">账号:</td>
		<td>
			<input name="account"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsServiceOrgItem.account)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">名称:</td>
		<td>
			<input name="name"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsServiceOrgItem.name)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">公司名称:</td>
		<td>
			<input name="companyName"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsServiceOrgItem.companyName)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">所属行业:</td>
		<td>
			<@eu.comboBox name="industry" url="common.do?loadComboBox&key=CMS_INDUSTRY&value=${(cmsServiceOrgItem.industry)!}" />
		</td>
	</tr>
	<tr>
		<td class="tbLabel">电话号码:</td>
		<td>
			<input name="tel"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsServiceOrgItem.tel)!}"/>
		</td>
	</tr>
<!-- 	<tr> -->
<!-- 		<td class="tbLabel">营业执照:</td> -->
<!-- 		<td> -->
<!-- 			<input name="businessLicensePath"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsServiceOrgItem.businessLicensePath)!}"/> -->
<!-- 		</td> -->
<!-- 	</tr> -->
	<tr>
		<td class="tbLabel">LOGO:</td>
		<td>
			<input name="companyLogo"  type="hidden" id="cmsServiceCompanyLogo" value="${(cmsServiceOrgItem.companyLogo)!}"/>
			<div>
				<span id="uploadServiceOrgPhoto"></span>
				<span id="uploadServiceOrgShow">
				<#if cmsServiceOrgItem??>
				<img src="${(cmsServiceOrgItem.companyLogo)!}" width="48" height="48"/>
				</#if>	
				</span>
			</div>
            <span style="display:none">
            	<input id="btnServiceOrgCancel" type="button" value="取消全部上传" onclick="swfu.cancelQueue();" disabled="disabled" style="margin-left: 2px; font-size: 8pt; height: 22px;" />
           	</span>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">QQ:</td>
		<td>
			<input name="qq"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsServiceOrgItem.qq)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">服务描述:</td>
		<td>
			<input name="serviceDesc"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsServiceOrgItem.serviceDesc)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">服务内容:</td>
		<td>
			<input name="serviceContent"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsServiceOrgItem.serviceContent)!}"/>
		</td>
	</tr>
</table>
<script>
var swfServiceOrgPhoto = new SWFUpload({
	flash_url : "static/plugins/swfupload/swfupload.swf",
   upload_url: "common.do?uploadFile",
   file_post_name:"filedata",
   post_params: {"name" : "zwm"},
   use_query_string:true,
    file_size_limit : "10 MB",
       file_types : "*.jpg;*.gif;*.png;*.bmp",    //这是全部文件都可以上传，如果要限制只有某些文件上传，则可以这么写 file_types : "*.jpg;*.gif;*.png",
       file_types_description : "图片",
//        file_upload_limit : 1,
       file_queue_limit : 0,
       custom_settings : {
           progressTarget : "fsUploadProgress",
           cancelButtonId : "btnServiceOrgCancel"
       },

       button_image_url : "static/plugins/swfupload/swfbtn.png",
 		button_placeholder_id : "uploadServiceOrgPhoto",
 		button_text: "<span class='abtn'>上传LOGO</span>",
 		button_window_mode:"transparent",
 		button_width: 80,
 		button_height: 24,
 		button_text_left_padding: 22,
 		button_text_top_padding: 2,
       // The event handler functions are defined in handlers.js
       file_queued_handler : fileQueued,
       file_queue_error_handler : fileQueueError,
       file_dialog_complete_handler : fileDialogComplete,
       upload_error_handler : uploadError,
       upload_success_handler : uploadInstrPhotoSuccess,
       upload_complete_handler : uploadComplete,
       queue_complete_handler : queueComplete    // Queue plugin event
});

function uploadInstrPhotoSuccess(file,rs) {
	 
	  var json = eval('(' + rs + ')');
	  $('#uploadServiceOrgShow').html('<img src="'+json.obj+'" width="48" height="48"/>');	
	  $('#cmsServiceCompanyLogo').val(json.obj);
	}
</script>
